﻿<!--- ==================================================
NAME:	del_order.cfm
DESC:	File used to delete a specified order.
=================================================== --->
<cfsetting enablecfoutputonly="yes">

<!--- default data --->
<cfparam name="arguments.customer_id">
<cfparam name="arguments.order_id">
<cfparam name="arguments.cancel_code">
<cfparam name="arguments.user">
<cfparam name="arguments.user">
<cfparam name="arguments.lost_to">
<cfparam name="arguments.lost_pct">
<cfparam name="arguments.inv_avail">
<cfparam name="arguments.sav_hours">

<!--- build xml statement --->
<cfscript>
xi_namespace='#trim(application.xi_namespace)#:ORDERS:DeleteOrders';
xi_interface='DeleteOrder_OB';
xml = '<xtiinput>
   <inputheader>
      <actionset>
         <action>del_order</action>
      </actionset>
   </inputheader>
   <inputdata>
      <customerid>#Val(arguments.customer_id)#</customerid>
      <order_number>#arguments.order_id#</order_number>
      <cancel_code>#arguments.cancel_code#</cancel_code>
      		<lost_to>#arguments.lost_to#</lost_to>
			     <lost_pct>#arguments.lost_pct#</lost_pct>
      			<inv_avail>#arguments.inv_avail#</inv_avail>
     		<sav_hours>#arguments.sav_hours#</sav_hours>
	  <user>#arguments.user#</user>
   </inputdata>
</xtiinput>';
</cfscript>

